CC = g++

CFLAGS = -Wall -O3

LIBS = 

INCLUDES = 

PROG = pso

OBJS = main.o pso.o particle.o vector.o position.o velocity.o params.o rand.o logger.o fitness_functions.o metapso.o

all: $(PROG)

$(PROG): $(OBJS)
	$(CC) $(CFLAGS) $(LIBS) $(INCLUDES) $(OBJS) -o $(PROG)
	mv $(PROG) ..

%.o: %.cpp
	$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@

clean:
	- rm -rf *.o $(PROG)


.PHONY: clean move
